null pointer value造句
例句與造句
- A " null pointer value " explicitly points to no valid location.
- Dereferencing a null pointer value is undefined, often resulting in a segmentation fault.
- Unless otherwise specified, static objects contain zero or null pointer values upon program startup.
- Fixes for potential VCS commit logs ( including explicit assignments of NULL pointer values ).
- In conditional contexts, null pointer values evaluate to false, while all other pointer values evaluate to true.
- It's difficult to find null pointer value in a sentence. 用null pointer value造句挺難的
- This means that, for example, a pointer to 0 is never a valid pointer and can be used as a special null pointer value.
- The not frequently used page-replacement algorithm generates fewer page faults than the least recently used page replacement algorithm when the page table contains null pointer values.
- Null pointer values are useful for indicating special cases such as no " next " pointer in the final node of a linked list, or as an error indication from functions returning pointers.
- Because the C language does not specify an implicit initialization for objects of automatic storage duration, care should often be taken to ensure that the address to which ptr points is valid; this is why it is sometimes suggested that a pointer be explicitly initialized to the null pointer value, which is traditionally specified in C with the standardized macro NULL:
- Prior to the C99 standard, variable-sized arrays were a common example of this . ( See the article on malloc for an example of dynamically allocated arrays . ) Unlike automatic allocation, which can fail at run time with uncontrolled consequences, the dynamic allocation functions return an indication ( in the form of a null pointer value ) when the required storage cannot be allocated . ( Static allocation that is too large is usually detected by the loader, before the program can even begin execution .)